<% title _("Compute Resources") %>
<% title_actions new_link(_("Create Compute Resource")),
                 documentation_button('5.2ComputeResources') %>

<table class="<%= table_css_classes 'table-fixed' %>">
  <thead>
    <tr>
      <th class="col-md-6"><%= sort :name, :as => s_("ComputeResource|Name") %></th>
      <th class="col-md-5"><%= sort :type, :as => _("Type") %></th>
      <th><%= _('Actions') %></th>
    </tr>
  </thead>
  <tbody>
    <% @compute_resources.each do |compute| %>
      <tr>
        <td class="ellipsis"><%= link_to compute.name, compute %></td>
        <td class="ellipsis"><%= compute.provider_friendly_name %></td>
        <td>
          <%= action_buttons(link_to_if_authorized(_('Edit'), hash_for_edit_compute_resource_path(compute).merge(:auth_object => compute, :authorizer => authorizer)),
                            display_delete_if_authorized(hash_for_compute_resource_path(:id => compute).merge(:auth_object => compute, :authorizer => authorizer), :data => { :confirm => _("Delete %s?") % compute.name })) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate_with_info @compute_resources %>
